package com.jrx.anytxn.transaction.dto.payment;

import com.jrx.anytxn.transaction.dto.common.CommonReq;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;


/**
 * 第三方还款请求实体
 * @author  lbz
 * date  2020/3/18
 **/
@ApiModel(value = "第三方还款请求实体", description = "第三方还款请求实体")
public class ThirdPartyPaymentRep extends CommonReq {
    /**
     * 还款类型
     */
    @ApiModelProperty(value = "还款类型")
    @NotBlank(message="还款类型不可空")
    @Size(max=20, message = "还款类型不能超过20位")
    private String paymentType;

    /**
     * 还款期次
     */
    @ApiModelProperty(value = "还款期次")
    private Integer paymentTerm;

    /**
     * 订单id
     */
    @ApiModelProperty(value = "订单号")
    private String loanId;

    /**
     * 外部合同号
     */
    @ApiModelProperty(value = "外部合同号")
    private String contractNumber;


    public String getPaymentType() {
        return paymentType;
    }

    public void setPaymentType(String paymentType) {
        this.paymentType = paymentType;
    }

    public Integer getPaymentTerm() {
        return paymentTerm;
    }

    public void setPaymentTerm(Integer paymentTerm) {
        this.paymentTerm = paymentTerm;
    }

    public String getLoanId() {
        return loanId;
    }

    public void setLoanId(String loanId) {
        this.loanId = loanId;
    }

    public String getContractNumber() {
        return contractNumber;
    }

    public void setContractNumber(String contractNumber) {
        this.contractNumber = contractNumber;
    }
}
